<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>音视频t</title>
</head>

<body>
    <video id="myvideo" src="./video/守望先锋 2016_8_11 0_31_08 (2).mp4" controls></video>
    <script>
        myvideo.width = 500;
        window.addEventListener('keyup', function (e) {
            //console.log(e.keyCode)
            if (e.keyCode == 39) {
                myvideo.currentTime += 3
            } else if (e.keyCode == 37) {
                myvideo.currentTime -= 3
            }
        })
    </script>
</body>

</html>